package com.lcn.comm.annotation;

import java.lang.annotation.*;

/**
 * <p>类说明</p>
 *
 * @author 张峰 zfvip_it@163.com
 * @create: 2017-12-25 17:18
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface TxTransaction {

    /**
     * 回滚异常
     *
     * @return
     */
    Class<? extends Throwable>[] rollbackFor() default {};

    /**
     * 不回滚异常
     *
     * @return
     */
    Class<? extends Throwable>[] noRollbackFor() default {};
}
